package com.example.xmlparsedemo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        tv_sax_parse.setOnClickListener {
            ListActivity.startThisActivity(this, 1)
        }
        tv_dom_parse.setOnClickListener {
            ListActivity.startThisActivity(this, 2)
        }
        tv_pull_parse.setOnClickListener {
            ListActivity.startThisActivity(this, 3)
        }
    }
}
